<div class="storeUnits index">
	<h2><?php __d('store','Store Units');?></h2>
	<table class="index" cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('name');?></th>
			<th><?php echo $this->Paginator->sort('value');?></th>
			<th class="actions"><?php __d('store','Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($storeUnits as $storeUnit):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $storeUnit['StoreUnit']['id']; ?>&nbsp;</td>
		<td><?php echo $storeUnit['StoreUnit']['name']; ?>&nbsp;</td>
		<td><?php echo $storeUnit['StoreUnit']['value']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__d('store','View', true), array('action' => 'view', $storeUnit['StoreUnit']['id'])); ?>
			<?php echo $this->Html->link(__d('store','Edit', true), array('action' => 'edit', $storeUnit['StoreUnit']['id'])); ?>
			<?php echo $this->Html->link(__d('store','Delete', true), array('action' => 'delete', $storeUnit['StoreUnit']['id']), null, sprintf(__d('store','Are you sure you want to delete # %s?', true), $storeUnit['StoreUnit']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __d('store','Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __d('store','previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__d('store','next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<?php if($session->check('Auth.User.id')){?>
<?php echo $this->element('toolbar_actions_main',array('plugin'=>'store','toolbar'=>'units'))?>
<?php }?>